<!--
 * @Author: cly
 * @Date: 2021-07-11 09:09:54
 * @LastEditTime: 2021-07-11 09:14:13
 * @LastEditors: cly
 * @Description: Never give up
 * @FilePath: \briup\day02\xxtx-ui\伸缩盒布局.html
 * @sxnd1006
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>伸缩盒布局</title>
</head>
<style>
    .main{
        display: flex;
    }
    .main div{
        height: 200px;
        border: 1px solid salmon;
    }
    .one{
        flex:2;
    }
    .two{
        flex:2;
    }
    .three{
        flex:1;
    }
</style>
<body>
    <div class="main">
        <div class="one"></div>
        <div class="two"></div>
        <div class="three"></div>
    </div>
</body>
</html>